﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class add_loto : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<Guid>(
                name: "LotNoId",
                table: "ProductionSchedulers",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "ModelId",
                table: "ProductionSchedulers",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "LotNoId",
                table: "ProductionAssignments",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "ModelId",
                table: "ProductionAssignments",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "LotNoId",
                table: "ModifyManages",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "ModelId",
                table: "ModifyManages",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "LotNoId",
                table: "MakeTasks",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "ModelId",
                table: "MakeTasks",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "LotNoId",
                table: "CancellingStocksDocuments",
                nullable: true);

            migrationBuilder.AddColumn<Guid>(
                name: "ModelId",
                table: "CancellingStocksDocuments",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "LotNoId",
                table: "ProductionSchedulers");

            migrationBuilder.DropColumn(
                name: "ModelId",
                table: "ProductionSchedulers");

            migrationBuilder.DropColumn(
                name: "LotNoId",
                table: "ProductionAssignments");

            migrationBuilder.DropColumn(
                name: "ModelId",
                table: "ProductionAssignments");

            migrationBuilder.DropColumn(
                name: "LotNoId",
                table: "ModifyManages");

            migrationBuilder.DropColumn(
                name: "ModelId",
                table: "ModifyManages");

            migrationBuilder.DropColumn(
                name: "LotNoId",
                table: "MakeTasks");

            migrationBuilder.DropColumn(
                name: "ModelId",
                table: "MakeTasks");

            migrationBuilder.DropColumn(
                name: "LotNoId",
                table: "CancellingStocksDocuments");

            migrationBuilder.DropColumn(
                name: "ModelId",
                table: "CancellingStocksDocuments");
        }
    }
}
